import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
import QtQuick.Shapes 1.15

Item {
    id: root
    width: 691
    height: 350
    GridLayout{
        id: _4gStatusLayout
        rows: 8
        columns: 2
        anchors.top: parent.top
        anchors.topMargin: 30
        anchors.horizontalCenter: parent.horizontalCenter
        rowSpacing: 5
        columnSpacing:10

        Text {
            id: lbl4gConnStatus
            Layout.row: 0
            Layout.column: 0
            text: qsTr("4G连接状态")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: _4gConnStatus
            Layout.row: 0
            Layout.column: 1
            text: mymodbus._4gConnStatus===0? qsTr("未连接"): qsTr("连接")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: lbl4gcpin
            Layout.row: 1
            Layout.column: 0
            text: qsTr("4G CPIN")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: _4gcpin
            Layout.row: 1
            Layout.column: 1
            text: mymodbus._4gCPIN
                  //?"True":"False"
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: lbl4gcgreg
            Layout.row: 2
            Layout.column: 0
            text: qsTr("4G CEREG")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: _4gcgreg
            Layout.row: 2
            Layout.column: 1
            text: mymodbus._4gCEREG
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: lbl4gOpenMQTT
            Layout.row: 3
            Layout.column: 0
            text: qsTr("4G Open MQTT Client")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: _4gOpenMQTT
            Layout.row: 3
            Layout.column: 1
            text: mymodbus._4gOpenMqttClient
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: lbl4gConnMQTT
            Layout.row: 4
            Layout.column: 0
            text: qsTr("4G Connect MQTT Client")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: _4gConnMQTT
            Layout.row: 4
            Layout.column: 1
            text: mymodbus._4gConnMqttClient
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: lbl4gRevStatus
            Layout.row: 5
            Layout.column: 0
            text: qsTr("4G上次回复")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: _4gRevStatus
            Layout.row: 5
            Layout.column: 1
            text: mymodbus._4gLastRevTime
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: lbl4gSubSuccess
            Layout.row: 6
            Layout.column: 0
            text: qsTr("订阅成功")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: _4gSubSuccess
            Layout.row: 6
            Layout.column: 1
            text: mymodbus._4gSubSuccess
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: lbl4gSignal
            Layout.row: 7
            Layout.column: 0
            text: qsTr("4G信号")
            color: "white"
            font.pixelSize: 28
        }
        Text {
            id: _4gSignal
            Layout.row: 7
            Layout.column: 1
            text: mymodbus._4gSignal
            color: "white"
            font.pixelSize: 28
        }

    }

}

